package com.bms.controller.xybank;

import com.bms.common.response.Result;
import com.bms.service.LineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: 条线控制层
 * Author: jingcaiqi1225@gmail.com
 * Date: 2024/11/11 13:49
 */
@RestController
@RequestMapping("/line")
public class LineController {

    @Autowired
    private LineService lineService;

    /**
     * 查询所有的条线
     * @return 条线列表
     */
    @GetMapping(value = "/getLineList")
    public Result getLineList(){
        return Result.success(lineService.getLineList());
    }
}
